<?php

/*

  Action	$4
  +1 Card; +2 Actions, +1 Buy

 */

class WorkersVillage extends Card implements iAction, iKingdom, iProsperity {

    public function __construct() {
        parent::__construct("Workers Village", 4);
        $this->undoPlay = false;
        $this->undoBuy = true;
    }

    public function getDescription() {
        return array(
            "+1 Card",
            "+2 Actions",
            "+1 Buy");
    }
    
    public function play(Game $game, $isRealCard) {
        $drawed_cards = $game->drawCards(1);
        $game->addActions(2);
        $game->addBuys(1);
         ScreenDisplay::addScreenMessage($game, true, "get +2 action, +1 buy,  and draw " . nicePrint($drawed_cards), "get +2 action, +1 buy,  and draws " . sizeof($drawed_cards) . " cards");

        $game->cardActionFinished();
        return true;
    }

}

?>